﻿@page
@model RegisterModel
@{
    Layout = null;
}

<h1>@ViewData["Title"]</h1>
<link href="~/css/register.css" rel="stylesheet" />
<link href="~/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<div >
        <form id="registerForm" asp-route-returnUrl="@Model.ReturnUrl" method="post">
            <h2 >
            <img src="~/images/logo.png" />SDMS
            </h2>
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <div class=" mb-3">
            <label asp-for="Input.Email">邮箱 </label>
                <input asp-for="Input.Email" class="form-control" autocomplete="username" aria-required="true" placeholder="请输入您的邮箱" />
            </div>
        <div class="warn">                <span asp-validation-for="Input.Email" class="text-danger"></span></div>
        <div class=" mb-3">
            <label asp-for="Input.Password">密码</label>
                <input asp-for="Input.Password" class="form-control" autocomplete="new-password" aria-required="true" placeholder="请输入您的密码" />
            </div>
        <div class="warn">                 <span asp-validation-for="Input.Password" class="text-danger"></span> </div>
        <div class=" mb-3">
            <label asp-for="Input.ConfirmPassword">确认密码</label>
                <input asp-for="Input.ConfirmPassword" class="form-control" autocomplete="new-password" aria-required="true" placeholder="请再次输入您的密码"/>
        </div>
        <div class="warn">
            <span asp-validation-for="Input.ConfirmPassword" class="text-danger"></span>
        </div>
        <div class="mb-3">
            <button id="registerSubmit" type="submit" class="w-100 btn btn-lg btn-primary">注册</button>
       
        </div>
        <div class="mb-3">
            <button type="button" class="btn btn-outline-secondary w-100 btn-lg" id="cancel">取消</button>
        </div>
        <footer class="border-top footer text-muted">
            <div class="container">
                &copy; 2023 - shenkong - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
            </div>
        </footer>
        </form>
</div>
<script>
    document.querySelector('#cancel').addEventListener('click',function(){
        window.location.href = "/Identity/Account/Login"
    })
</script>

@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}
